import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const routes = [
  {
    path: '',
    redirect: '/login',
  },
  {
    path: '/login',
    component: () => import('@/views/Login/Login'),
  },
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: () => import('@/views/Dashboard/Dashboard'),
  }
]
const createRouter = () => new Router({
  // mode: 'history',
  routes
})
const router = createRouter()
export default router